<template>
	<view>
		<view class="header status_bar" :class="scrrol == true ? 'scrrolHeader' : ''">
			<view class="back iconfont icon-xiangzuo1" @tap="backPage"></view>
			<view class="text" :class="scrrol == true ? 'scrrolHeader' : ''">保险分期</view>
		</view>	
		<view class="bg_box">
			<image class="bg01" src="../../static/bg07.png" mode="widthFix"></image>
			<view class="bg_content">

				<view class="limit_maxbox">
					<image src="../../static/bg08.png" mode="widthFix"></image>
					<view class="limit_box">
						<view class="title">最高额度（元）</view>
						<view class="num">50,000</view>
						<view class="text">最终获取额度，以实际审批为准</view>
					</view>				
				</view>
				
				<view class="flow_box">
					<view class="flow_title">
						<view class="round">
							<image src="../../static/round01.png" mode="widthFix"></image>
						</view>
						<view class="title">分期特权</view>
						<view class="round">
							<image src="../../static/round01.png" mode="widthFix"></image>
						</view>
					</view>
					<view class="privilege_list">
						<view class="icon">
							<image src="../../static/menu/menu16.png" mode="widthFix"></image>
						</view>
						<view class="text_box">
							<view class="title">认证便捷</view>
							<view class="text">快速认证，秒批额度</view>
						</view>
					</view>
					<view class="privilege_list">
						<view class="icon">
							<image src="../../static/menu/menu17.png" mode="widthFix"></image>
						</view>
						<view class="text_box">
							<view class="title">取现特权</view>
							<view class="text">审核放款速度快</view>
						</view>
					</view>
					<view class="privilege_list">
						<view class="icon">
							<image src="../../static/menu/menu18.png" mode="widthFix"></image>
						</view>
						<view class="text_box">
							<view class="title">随心分期</view>
							<view class="text">最高支持24期</view>
						</view>
					</view>
				</view>
				
				<view class="flow_box">
					<view class="flow_title">
						<view class="round">
							<image src="../../static/round01.png" mode="widthFix"></image>
						</view>
						<view class="title">申请条件</view>
						<view class="round">
							<image src="../../static/round01.png" mode="widthFix"></image>
						</view>
					</view>
					<view class="flow_rule">
						<view class="arrow iconfont icon-shangjiantou"></view>
						<view class="rule">18-60岁中国公民，不含港澳台。</view>
					</view>
					<view class="flow_rule">
						<view class="arrow iconfont icon-shangjiantou"></view>
						<view class="rule">车辆当前无抵押。</view>
					</view>
				</view>
				
				<view class="clear_box03"></view>
				
				<view class="confirm" :data-url="'/pages/index/form01'" @click="gotopage">立即申请</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				page:1,
				scrrol:false,
				info:'',
				flowList:[
					{
						tick:true,
						name:'审核需要准备哪些材料?',
						rule:'—般为身份证、银行卡、行驶证、车辆登记证书,具体以公司 经理联系为准。'
					},
					{
						tick:true,
						name:'审核需要准备哪些材料?',
						rule:'—般为身份证、银行卡、行驶证、车辆登记证书,具体以公司 经理联系为准。'
					}
				]
			}
		},
		onLoad() {

		},
		methods: {
			setRule(e){
				let that = this;
				let index = e.currentTarget.dataset.index;
				that.flowList[index].tick = !that.flowList[index].tick
			},
			loadData() {
				let that = this;
			// 	that.Net._get('shop_home', {}, res => {
			// 		if (res.code == 200) {
			// 			//console.log(res);
			
			// 		}
			// 	});
			},
			backPage() {
				uni.navigateBack({});
			},
			gotopage(e) {
				let url = e.currentTarget.dataset.url;
				uni.navigateTo({
					url: url
				});
			},

		},
		onPageScroll: function(Object) {
			//console.log(Object.scrollTop); //实时获取到滚动的值
			if (Object.scrollTop > 28) {
				this.scrrol = true;
				/* #ifdef APP-PLUS */
				/* #endif */
			} else if (Object.scrollTop < 28) {
				this.scrrol = false;
				/* #ifdef APP-PLUS */
				/* #endif */
			}
		},
		onReachBottom() {
		  var that = this;
		  that.page++;
		  // that.Net._get('shop_goods', {per_page:'10',page:that.page,}, res => {
		  //   if (res.code == 200) {
		  //     //console.log(res)
		  //     if (res.data.data == '') {
		  //       uni.showToast({
		  //         title: '已经是最后一页了',
		  //         duration: 2000,
		  //         icon: 'none'
		  //       });
		  //     } else {
		  //       that.info = that.info.concat(res.data.data); //将数据拼接在一起
		  //     }
		  //   } else if (res.code == 0) {
		  //     that.Msg.Success(res.msg, res => {});
		  //   }
		  // });
		},
	}
</script>

<style>
	
	.header{
		background-color: transparent !important;
	}
	
	.header .text{
		background-color: transparent !important;
		color: #333 !important;
	}
	
	.scrrolHeader{
		background-color: #F9E9E3 !important;
	}
	
	.bg_box{
		width: 100%;
		position: relative;
	}
	
	.bg_box .bg01{
		width: 100%;
	}
	
	.bg_box .bg_content{
		width: 92%;
		position: absolute;
		left: calc(50% - 46%);
		top: calc(13.5vw + var(--status-bar-height));
		z-index: 98;
	}
	
	.rent_img{
		width: 100%;
	}
	
	.rent_img image{
		width: 100%;
	}
	
	.limit_maxbox{
		width: 100%;
		position: relative;
		margin-top: 22vh;
	}
	
	.limit_maxbox image{
		width: 100%;
	}
	
	.limit_box{
		width: 100%;
		border-radius: 3vw;
		padding: 6vw 4vw;
		position: absolute;
		left: 0;
		top: 0;
	}
	
	.limit_box .title{
		font-size: 3.6vw;
		color: #fff;
		font-weight: bold;
	}
	
	.limit_box .num{
		font-size: 13vw;
		color: #fff;
		font-weight: bold;
		margin-top: 3vw;
	}
	
	.limit_box .rule{
		font-size: 3.4vw;
		color: #715439;
		margin-top: 3vw;
	}
	
	.limit_box .text{
		font-size: 3.4vw;
		color: #fff;
		margin-top: 3vw;
	}
	
	.flow_box{
		width: 100%;
		background-color: #fff;
		border-radius: 3vw;
		padding: 6vw 4%;
		margin-top: 4%;
	}
	
	.flow_box .flow_title{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 6vw;
	}
	
	.flow_box .flow_title .round{
		width: 4vw;
	}
	
	.flow_box .flow_title .round image{
		width: 100%;
	}
	
	.flow_box .flow_title .title{
		font-size: 4.5vw;
		color: #333;
		font-weight: bold;
		margin: 0 4vw;
	}
	
	.flow_box .flow_menu{
		width: 100%;
		display: flex;
		align-items: center;
	}
	
	.flow_box .flow_menu .line{
		background-color: #EEEEEE;
		height: 1px;
		flex: 1;
	}
	
	.flow_box .flow_menu .menu{
		width: 15vw;
	}
	
	.flow_box .flow_menu .menu .num{
		width: 7vw;
		height: 7vw;
		margin: 0 auto;
		border: 1px solid #FC5D20;
		box-sizing: border-box;
		color: #FC5D20;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.flow_box .flow_menu .menu .text{
		font-size: 3.5vw;
		color: #808080;
		margin-top: 4vw;
		text-align: center;
	}
	
	.flow_list{
		width: 100%;
		margin-top: 4%;
	}
	
	.flow_list .list{
		display: flex;
		align-items: center;
	}
	
	.flow_list .list .icon{
		width: 5vw;
		height: 5vw;
		border-radius: 50% 50% 1vw 50%;
		background-color: #FC5D20;
		color: #fff;
		font-size: 3vw;
		margin-right: 3vw;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.flow_list .list .name{
		font-size: 3.5vw;
		color: #333;
		font-weight: bold;
		flex: 1;
	}
	
	.flow_list .list .arrow{
		font-size: 4vw;
		color: #999999;
	}
	
	.flow_list .rule{
		font-size: 3.2vw;
		color: #808080;
		margin-top: 3vw;
		line-height: 5vw;
	}
	
	.flow_rule{
		width: 100%;
		margin-top: 4vw;
		display: flex;
		align-items: center;
	}
	
	.flow_rule .arrow{
		font-size: 3.5vw;
		color: #FC5D20;
		margin-right: 2vw;
	}
	
	.flow_rule .rule{
		font-size: 3.5vw;
		color: #808080;
	}
	
	.privilege_list{
		width: 100%;
		display: flex;
		align-items: center;
		margin-top: 4%;
	}
	
	.privilege_list .icon{
		width: 15vw;
		margin-right: 4vw;
	}
	
	.privilege_list .icon image{
		width: 100%;
	}
	
	.privilege_list .text_box{
		flex: 1;
	}
	
	.privilege_list .text_box .title{
		font-size: 3.5vw;
		color: #333;
		font-weight: bold;
	}
	
	.privilege_list .text_box .text{
		font-size: 3.2vw;
		color: #999999;
		margin-top: 2vw;
	}
	
	
</style>
